import request from '@/utils/request'

// 获取所有算子
export const getListApi = params => {
  return request({
    url: '/knowledgeAdmin/operator/list',
    method: 'get',
    params,
  })
}


// 删除
export const deleteApi = ids => {
  return request({
    url: '/knowledgeAdmin/operator/delete',
    method: 'delete',
    data: ids,
  })
}

// 修改
export const updateApi = data => {
  return request({
    url: '/knowledgeAdmin/operator/update',
    method: 'put',
    data,
  })
}
// 添加
export const saveApi = data => {
  return request({
    url: '/knowledgeAdmin/operator/save',
    method: 'post',
    data,
  })
}

// 获取算子信息
export const getInfoApi = id => {
  return request({
    url: `/knowledgeAdmin/operator/info/${id}`,
    method: 'get',
  })
}

